<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

<!-- start: TOPBAR -->
<header class="topbar navbar navbar-inverse navbar-fixed-top inner">
	<!-- start: TOPBAR CONTAINER -->
	<div class="container">
		<div class="navbar-header">
			<a class="sb-toggle-left hidden-md hidden-lg" href="#main-navbar">
				<i class="fa fa-bars"></i>
			</a>
			<!-- start: LOGO -->
			<a class="navbar-brand" href="${contextPath}/">
				<img src="${contextPath}/static/img/logo.png" alt="" />
				<spring:message code="app.appname" />
			</a>
			<!-- end: LOGO -->
		</div>
		<div class="topbar-tools">
			<!-- start: TOP NAVIGATION MENU -->
			<ul class="nav navbar-right">
			    <shiro:user>
			        <!-- start: USER DROPDOWN -->
				    <li class="dropdown current-user">
					    <a data-toggle="dropdown" data-hover="dropdown" class="dropdown-toggle" data-close-others="true" href="#">
						    <img src="${contextPath}/static/img/anonymous.png" alt="avatar" class="img-circle" />
						    <span class="username hidden-xs"><shiro:principal/></span> <i class="fa fa-caret-down "></i>
					    </a>
					    <ul class="dropdown-menu dropdown-dark">
					        <li>
					            <a href="${contextPath}/logout"><spring:message code="app.user.action.logout"/></a>
					        </li>
					    </ul>
				    </li>
				    <!-- end: USER DROPDOWN -->
			    </shiro:user>
			</ul>
			<!-- end: TOP NAVIGATION MENU -->
		</div>
	</div>
	<!-- end: TOPBAR CONTAINER -->
</header>
<!-- end: TOPBAR -->